<?php
	if (!empty($this->validationErrors) && !empty($this->validationErrors['Contact']))
	{
		echo "<div style=\"padding-left: 165px; color: red; padding-bottom: 5px;\">\n\t<ul>";
		foreach ($this->validationErrors['Contact'] as $key => $value) {
			echo "\t\t<li>$value</li>";
		}
		echo "\t</ul>\n</div>";
	}
//	echo $this->validationErrors['Employee']['firstname']
?>
<form id="ContactAddForm" method="post" action="/contacts/add">
   <fieldset style="padding: 5px 0px">
      <legend style="margin-left:15px; padding: 0px 3px 3px 0px; font-size: 10pt"><strong>Thông tin liên hệ</strong></legend>
	  <div style="width: 100%; margin-top: 10px">
		<div class="label" style="float:left; width: 130px; text-align: right; padding-right: 3px;">Họ và Tên:</div>
		<div style="float:left; width: 500px">
			<input name="data[Contact][name]" value="<?=$this->data['Contact']['name']?>" style="width: 266px" class="textbox" type="text" maxlength="60" value="" id="ContactName" />
		</div>
		<div style="clear: both"></div>
	  </div>
 	  <div style="width: 100%; margin-top: 2px">
		<div class="label" style="float:left; width: 130px; text-align: right; padding-right: 3px;">Email:</div>
		<div style="float:left; width: 300px">
			<input name="data[Contact][email]" value="<?=$this->data['Contact']['email']?>" style="width: 266px" class="textbox" type="text" maxlength="120" value="" id="ContactEmail" />
		</div>
		<div style="clear: both"></div>
	  </div>
	  <div style="width: 100%; margin-top: 2px">
		<div class="label" style="float:left; width: 130px; text-align: right; padding-right: 3px;">Nội dung:</div>
		<div style="float:left; width: 300px">&nbsp;</div>
		<div style="clear: both"></div>
	  </div>
	<div style="width: 100%; margin-top: 2px; margin-bottom: 15px">
		<textarea name="data[Contact][details]" style="margin-left: 65px;width: 335px; height: 60px;" class="textbox" maxlength="60" value="" id="ContactDetails"><?=$this->data['Contact']['details']?></textarea>
	</div>
   </fieldset>
	<div style="width: 100%; margin-top: 12px;">
		<input type="submit" value="Liên hệ" class="button" style="margin-left: 135px" /><input type="button" value="Trang chủ" class="button" style="margin-left: 15px" onclick="javascript: window.location='/'" />
	</div>
</form>